<div id="add-materiel">
	<h4>Formulaire d'ajout d'un nouveau materiel</h4>
	<form action="#">
	<p>
		<label for="categorie">categorie : </label><select name="categorie" id="categorie">
			<option value="empty"></option>
				<?php
					include("../database.php");
					$sql = Database::getInstance();
					
					$list_cat = $sql->getAllMaterielSportByAssoc($sql->getIdAssoc($_COOKIE["m2l"])->numero_association);
					foreach($list_cat as $cat) {
						echo '<option value='.$cat->id_materiel_sport.'>'.$cat->designation_materiel_sport.'</option>';
					}
				?>
		</select>
	</p>
	<input type="hidden" id="numAssoc" value='<?php echo $sql->getIdAssoc($_COOKIE["m2l"])->numero_association; ?> ' />
	<p>
		<label for="etat">Etat du materiel : </label><select name="etat" id="etat">
			<option value="empty"></option>
				<?php
					$list_etat = $sql->getAllEtat();
					foreach($list_etat as $etat) {
						echo '<option value='.$etat->id_etat.'>'.$etat->type_etat.'</option>';
					}
				?>
		</select>
	</p>
	<p>
		<label for="description_materiel">Description du materiel : </label><textarea id="description_materiel" name="description_materiel" placeholder="Nom du materiel" value=""></textarea>
	</p>
	<p>
		<label for="taille_lot">Référence : </label><input type="text" name="reference" id="reference" placeholder="Réference (Facultatif)" value="" />
	</p>
	<p>
		<label for="taille_lot">Taille du lot : </label><input type="text" name="taille_lot" id="taille_lot" placeholder="Taille du lot (Facultatif)" value="" />
	</p>
	<p>
		<input type="button" value="ajouter" id="addMateriel" />
	</p>
	</form>
</div>